import React from 'react';
import ReactDOM from 'react-dom';
import * as serviceWorker from './serviceWorker';//没有网的时候也可以加载出来

// import './lianxi/index.css';
// import TodoList from './lianxi/Todolist';

// import App from './lianxi/App';

// import TodoList from './antd/TodoList';

import TodoList from './reactRedux/TodoList';//使用react-redux
//Provider连接store，它内部的store都有能力获取store的内容
import {Provider} from 'react-redux';
import store from './reactRedux/store';

// ReactDOM.render(<TodoList />, document.getElementById('root'));

const App=(
    <Provider store={store}>
        <TodoList />
    </Provider>
);
ReactDOM.render(App, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
